﻿using System;
using System.Collections.Generic;
 
using System.Text;
using System.IO;

namespace GGSharp.Structures
{
    public class MessageRichTextImage : StuctureBase
    {
        private short _unknown1;	/* 0x0109 */
        private long _size;	/* rozmiar obrazka */
        private long _crc32;	/* suma kontrolna obrazka */

        public MessageRichTextImage() { }
        public MessageRichTextImage(BinaryReader reader)
        {
            Read(reader);
        }

        public long Size
        {
            get { return _size; }
        }

        public long CRC32
        {
            get { return _crc32; }
        }

        public override void Read(System.IO.BinaryReader reader)
        {
            _unknown1 = reader.ReadInt16();
            _size = reader.ReadInt64();
            _crc32 = reader.ReadInt64();

            ReadedLength = 18;
        }

        public override void Write(System.IO.BinaryWriter writer)
        {
            throw new NotImplementedException();
        }
    }
}
